package com.javasm.crm.service.aftersale;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.crm.domin.criteria.repositrory.OutOrderCriteria;
import com.javasm.crm.domin.entity.aftersale.Outorder;
import com.javasm.crm.domin.entity.aftersale.RefacOutApply;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lirui
 * @since 2021-07-14
 */
public interface IOutorderService extends IService<Outorder> {


    /**
     * 生成新的出库订单
     * @param refacOutApply 审批后的出库申请单
     * @return 是否生成成功
     */
    boolean generateNewOutOrder(RefacOutApply refacOutApply);

    Page<Outorder> getOutOrder(OutOrderCriteria outOrderCriteria);
}
